<?

/* GET Db Data  Š*/
function GetDBData($sql)
   { 
	  	global $db;
		$result = $db->Execute($sql);
		if ($result && $result->RecordCount() > 0) {
			while($row = $result->FetchRow()) {
			$data[] = $row; 
	  }
	}
      return $data;
   };
   
function friendly_seo_string($string, $separator = '-')
{

	$string = trim($string);
	$string = mb_strtolower($string,"UTF-8");
	$string =str_replace("č","c",$string);
	$string =str_replace("ć","c",$string);
	$string =str_replace("š","s",$string);
	$string =str_replace("ž","z",$string);
	$string =str_replace("đ","dj",$string);
	$string = trim(ereg_replace("[^ A-Za-z0-9_]", " ", $string));
	$string = ereg_replace("[ ]+", $separator, $string);

return $string;
};



?>